<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c" %>
<%
    response.setHeader("Cache-Control", "no-store"); //HTTP 1.1    
    response.setHeader("Pragma", "no-cache"); //HTTP 1.0    
    response.setDateHeader("Expires", 0); //prevents caching at the proxy server    
%>
<!DOCTYPE html>
<html>
    <head>
        <title>HTML5 and jQuery Mobile</title>
        <link rel="stylesheet" href="${applicationScope.webApp.root}/css/jquery.mobile.min.css" />
        <script src="${applicationScope.webApp.root}/js/json2.js"></script>
        <script src="${applicationScope.webApp.root}/js/jquery.min.js"></script>
        <script src="${applicationScope.webApp.root}/js/jquery.mobile.min.js"></script> 
    </head>
    <body id="body"> 
        <div data-role="page" id="page1"> 
            <div data-role="header">
                <a id='titleLeft' href="${applicationScope.webApp.root}/menu?command=menuList" data-role="button" data-theme="a" data-icon="arrow-l">返回</a>
                <h1 id="title">菜单信息</h1>
                <a id='titleRight' href="${applicationScope.webApp.root}/menu?command=menuList" data-role="button" data-theme="a" data-icon="arrow-r" style="display: none;">菜单</a>
            </div>
            <div data-role="content"> 
                <div class="content-primary" style="text-align: center">	
                    <form action="${applicationScope.webApp.root}/menu" method="POST">
                        <input type="hidden" name="command" value="save"/>
                        <input type="hidden" name="menuId" value="${param.menuId}"/>
                        <div data-role="fieldcontain" class="ui-grid-a"> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="titile">商户名称:</label> </div> 
                            <div class="ui-block-b" style="text-align: left;"><input type="text" name="title" value="${requestScope.menu.title}"/></div> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="name">菜单名称:</label></div> 
                            <div class="ui-block-b" style="text-align: left;"><input type="text" name="name" value="${requestScope.menu.name}"/></div> 
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 10px;"><label for="storeId">所属店铺：</label></div> 
                            <div class="ui-block-b" style="text-align: left;">
                                <input type="hidden" name="storeId" value="${sessionScope.userInSession.store.id}"/>
                                <input readonly type="text" name="description" value="${sessionScope.userInSession.store.storeName}"/>
                            </div>
                            <div class="ui-block-a" style="text-align: right; position: relative; top: 20px;"><label for="description">描述信息:</label></div> 
                            <div class="ui-block-b" style="text-align: left;">
                                <div data-role="fieldcontain">
                                    <textarea cols="40" rows="8" name="description" id="textarea">${requestScope.store.description}</textarea>
                                </div>
                            </div>
                        </div>
                        <div><button type="submit" data-theme="a" data-inline="true">确定</button></div> 
                    </form>
                </div><!--/content-primary --> 
            </div><!-- /content --> 
        </div><!-- /page -->
    </body>
</html>